<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <base href="<?php echo base_url() ?>"/>
        <title>闪电！ &raquo; 首页</title>
        <meta name="generator" content="Order 1.0" /> 
        <link rel="stylesheet" href="css/style.css" type="text/css" />
        <link rel="stylesheet" href="jquery-ui/css/ui-lightness/jquery-ui-1.9.0.custom.min.css" />
        <script src="jquery-ui/js/jquery-1.8.2.js" type="text/javascript" charset="utf-8"></script>
        <script src="jquery-ui/js/jquery-ui-1.9.0.custom.min.js" type="text/javascript" charset="utf-8"></script>
        <script>
            $(function(){
                $(".link_view").click(function(){
                    var url = $(this).attr("href");
                    // alert(url);
                    $.post(url,function(result){
                        var win_w = $('body').width()/2;
                        $("#order_detail").html(result);
                        $("#order_detail").show(200).css({"position":"absolute",'top':50,'left':win_w-420,"zIndex":"99999","background-color":"#FFF"});
                        $("#bgDiv").show(300);
                    });   
                    return false;
                })               
            });   
        </script>
    </head>
    <body>
        <div id="order_detail" style="display: none;background:white;width:800px;padding:20px;margin:0px;">            
        </div>
        <div id="bgDiv"></div>
        <div id="container">
            <div id="header">
                <div id="header-inner">
                    <h1><span><a href="#">闪电！</a></span></h1>
                    <h2>订单管理系统</h2>
                    <div class="clear"></div>
                    <ul class="sw_menu">
                        <li><a href=# class="sw_menu_current" >首页</a></li>
                        <li><a href=# >管理</a></li>
                        <li><a href=# >筛选</a></li>
                    </ul>
                </div>
            </div>
            <div class="clear"></div>
            <div id="content-wrapper">
                <div id="content">
                    <h3 id="comments-title">       <em>等待银行转账订单</em>       </h3>
                    <div class="comment-form">
                        <table>
                            <tr>
                                <th>日期</th>
                                <th>订单号</th>
                                <th>总金额</th>
                                <th>客户信息</th>
                                <th style="width: 60px">收款方式</th>
                                <th style="width: 120px">查看详情|确认入账</th>
                            </tr>
                            <?php foreach ($list as $k => $v): ?>
                                <tr class="tr_center">
                                    <td><?php echo $v['orderTime']; ?></td>
                                    <td><?php echo $v['orderNumber']; ?></td>
                                    <td><?php echo $v['price']; ?></td>
                                    <td><?php echo $v['clientInfo']; ?></td>
                                    <td><?php echo $v['paymentMethod']; ?></td>		
                                    <td> 
                                        <a href="<?php echo site_url("order/order_wait_for_pay_detail/" . $v['id']); ?>"  class="link_view">
                                            &nbsp;
                                        </a>
                                        <a href="<?php echo site_url("order/order_wait_for_pay_update/" . $v['id']); ?>" onclick="return confirm('确定已入账?');" class="link_mod">
                                            &nbsp;
                                        </a>
                                    </td>
                                </tr>	
                            <?php endforeach; ?>
                        </table>
                    </div>
                </div>
                <div id="sidebar">
                    <div id="sidebar-inner">
                        <h2>导航</h2>
                        <ul>
                            <li>
                                <a href="#">页面-1</a>
                            </li>
                            <li>
                                <a href="#">页面-2</a>
                            </li>
                            <li>
                                <a href="#">页面-3</a>
                            </li>
                            <li>
                                <a href="#">页面-4</a>
                            </li>
                            <li>
                                <a href="#">页面-5</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="clear"></div>
                <div id="footer">
                    <hr/>
                    <ul>
                        <li>
                            Powered by <a href=#>Swan 1.3.0</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </body>
</html>

